Skip to content

struct MsacAsmContextBuf: Refactor out and unsafe impl Send + Sync#1311

Merged
kkysen merged 2 commits intomainfrom
kkysen/struct-MsacAsmContextBuf-Send-Sync
Jul 16, 2024
Merged

struct MsacAsmContextBuf: Refactor out and unsafe impl Send + Sync#1311
kkysen merged 2 commits intomainfrom
kkysen/struct-MsacAsmContextBuf-Send-Sync

Conversation

@kkysen
Copy link
Collaborator

@kkysen kkysen commented Jul 13, 2024

This refactors out MsacAsmContext::buf_{pos,end} to MsacAsmContextBuf and then unsafe impl Send + Sync on it since it stores pointers from the Send + Sync Option<CArc<[u8]>> in MsacContext::asm. This makes MsacContext: Send + Sync.

@kkysen kkysen requested review from randomPoison and rinon July 13, 2024 00:36
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from ad679f5 to 0487a2e Compare July 13, 2024 22:48
@kkysen kkysen changed the base branch from kkysen/cookie-Option-NonNull to main July 14, 2024 02:37
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from 0487a2e to 1ec6eab Compare July 14, 2024 02:39
@kkysen kkysen force-pushed the kkysen/struct-MsacAsmContextBuf-Send-Sync branch from 1ec6eab to 6856860 Compare July 16, 2024 06:50
@kkysen kkysen merged commit 80e3b73 into main Jul 16, 2024
@kkysen kkysen deleted the kkysen/struct-MsacAsmContextBuf-Send-Sync branch July 16, 2024 07:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants